.textarea-div {
  position: relative;
  width: 100%;

  .add-html-btn {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 10;

    .arco-btn {
      margin: 0;
    }
  }

  .rules {
    height: 240px;
    border: 1px solid #D4D7E1;
    border-radius: 3px;
    padding: 12px;
    outline: 0;

    :deep(div) {
      line-height: 24px;
      height: 24px;
    }

    &:focus {
      :deep(.placeholder-after) {
        &::after {
          content: "输入#号可插入指标";
          font-size: 14px;
          color: #9B9FAB;
          margin-left: 8px;
        }
      }
    }

    &:empty::after {
      content: "输入#号可插入指标";
      font-size: 14px;
      color: #9B9FAB;
      margin-left: 8px;
    }

    :deep(.mertric-btn) {
      position: relative;
      display: inline-block;
      box-sizing: border-box;
      font-weight: 400;
      line-height: 24px;
      white-space: nowrap;
      outline: none;
      cursor: pointer;
      height: 24px;
      padding: 0 8px;
      font-size: 14px;
      border-radius: 3px;
      color: #33353b;
      background-color: #EFF1F7;
      margin: 0 6px;
      border: 0;

      .custom-size {
        font-size: 12px;
        margin-left: 4px;

        &::before {
          transform: rotate(30deg);
          display: inline-block;
        }
      }
    }
  }

  .rule-popover {
    position: fixed;
    border: 1px solid #E8EBF2;
    background-color: #ffffff;
    border-radius: 3px;
    display: none;
    z-index: 100000;
    width: 326px;
  }

  .symbol-list-wrap {
    display: none;
    position: fixed;
    z-index: 10;
    background-color: #ffffff;
    color: #33353b;
    padding: 5px 0;
    line-height: 24px;
    border-radius: 3px;
    text-align: center;
    border: 1px #D4D7E1 solid;
    outline: 0;
    cursor: pointer;

    div {
      width:32px;
      &:hover {
        background-color: rgb(247, 248, 250);
      }
    }
  }
}